package train.DAT622;

import java.util.Scanner;

public class Test622 {
    public static void main(String[] args)  {

        //int age=new Scanner(System.in).nextInt();

//        if(!(age>0&&age<150)){
//           throw new mtException();
        int k=1;
//        }
        System.out.println(new FinRe(k).pF());

    }
}
//class mtException extends Exception{
//    @Override
//    public String getMessage() {
//        return "不合法";
//    }
//}
class FinRe{
    private int age;
    public FinRe(int age) {
        this.age=age;
    }
    public int pF() {
        try {
            System.out.println(1 / age+"hhh");
            System.out.println("kkk");
            return 1;
        }catch(Exception e){
            System.out.println(e+"出错了");
        }finally{
            System.out.println("进入finally中了");
            return 0;
        }

    }
}
